<?php

require_once 'Zend/Log.php';
require_once 'Zend/Log/Writer/Stream.php';
require_once 'modules/lecture/models/Content.php';
class default_ErrorController extends Nine_Controller_Action 
{
    
	public function errorAction()
	{
        $errors = $this->_getParam('error_handler');
        $exception = $errors->exception;
        $log = new Zend_Log(
            new Zend_Log_Writer_Stream(
                'tmp/error.log'
            )
        );
        $log->debug($exception->getMessage() . "\n" .
                    $exception->getTraceAsString(). "\n" .
                    "Request URL: {$_SERVER['REQUEST_URI']}");
       /**
        * Display default error page
        */
       $objContent = new Models_Content();
     //  $errorContent = $objContent->getContentByGid(15)->toArray();             

     //  $this->view->errorContent = $errorContent;
      // $this->view->headTitle($errorContent['title']);             
       $this->view->url = $_SERVER['REQUEST_URI'];
    }
}